package cn.onein.edu.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * 网站首页Controller
 * @author Upton
 *
 */
@Controller
public class IndexController {
	
	Logger logger = Logger.getLogger(IndexController.class);
	
	@RequestMapping(value = "/", method = {RequestMethod.GET, RequestMethod.POST})
	public ModelAndView index(HttpServletResponse resp, HttpServletRequest req) throws Exception {
		
		ModelAndView result = new ModelAndView("index2");

		return result;
	}
}
